//
//  GameDataManager.h
//  CardWarrior
//
//  Created by Tekka Xie on 12-4-22.
//  Copyright (c) 2012年 Tencent. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GameDataManager : NSObject

// 游戏永久数据
@property (strong, nonatomic) NSMutableArray*  roles ;
@property (assign, nonatomic) NSInteger  bgm;
@property (assign, nonatomic) NSInteger  sfx;
@property (assign, nonatomic) NSInteger  difficulty;    // 1 - 3 
@property (assign, nonatomic) NSInteger  hostWinCount;
@property (assign, nonatomic) NSInteger  guestWinCount;

// 游戏intermediate数据
@property (assign, nonatomic) NSInteger  gameCurrentMode;  // 1 for single, 2 for double
@property (assign, nonatomic) NSInteger  hostSelectedRole; // 0~7
@property (assign, nonatomic) NSInteger  guestSelectedRole;// 0~7
@property (assign, nonatomic) NSInteger  whoIsSelecting;   // 1 for host, 2 for guest
@property (assign, nonatomic) NSInteger  hostScore;
@property (assign, nonatomic) NSInteger  guestScore;
@property (assign, nonatomic) NSInteger  whoWin;           // 1 for host, 2 for guest

- (void)saveData;

- (void)switchDiffculty;
- (void)switchSFX;
- (void)switchBGM;

- (void)minusHostSelectedRole;
- (void)addHostSelectedRole;

- (void)minusGuestSelectedRole;
- (void)addGuestSelectedRole;

- (void)resetScore;
- (void)minusHostScore;
- (void)minusGuestScore;

+ (id)sharedInstance;

- (void)clearPkData;

@end
